package com.donquijote.spirng6.service;

import com.donquijote.spirng6.dao.UserDao;
import com.donquijote.spirng6.dao.VipDao;

/**
 * @author 421527548@qq.com
 * @version V1.0
 * @title
 * @description
 * @date 2022-11-03 21:36
 */
public class UserService02 {

    private UserDao userDao;

    private VipDao vipDao;

    public UserService02() {
    }

    public UserService02(UserDao userDao, VipDao vipDao) {
        this.userDao = userDao;
        this.vipDao = vipDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public void setVipDao(VipDao vipDao) {
        this.vipDao = vipDao;
    }

    public void saveVIP(){
        vipDao.insert();
    }

    public void saveUser(){
        userDao.insert();
    }

    public void saveUVP(){
        userDao.insert();
        vipDao.insert();
    }

}
